#include <MFCKeyboardMouseCallbacktime.h>
Public Member Functions | |
| MFCKeyboardMouseCallbacktime (osgUtil::SceneView *sceneView) | |
| void | home () |
| virtual void | keyPress (Producer::KeyCharacter key) |
| virtual void | mouseMotion (float mx, float my) |
| virtual void | buttonPress (float mx, float my, unsigned int mbutton) |
| virtual void | buttonRelease (float mx, float my, unsigned int mbutton) |
| float | mx () |
| float | my () |
| unsigned int | mbutton () |
| void | resetTrackball () |
| osg::Matrixd | getViewMatrix () |
Private Attributes | |
| float | _mx |
| float | _my |
| float | _mx_buttonPress |
| float | _my_buttonPress |
| unsigned int | _mbutton |
| osg::ref_ptr< Producer::Trackball > | _trackBall |
| osg::ref_ptr< osgUtil::SceneView > | _sceneView |
Definition at line 6 of file MFCKeyboardMouseCallbacktime.h.
|
|
Constructor for the MFCKeyboardMouseCallbacktime
Definition at line 14 of file MFCKeyboardMouseCallbacktime.h. References resetTrackball(). |
|
||||||||||||||||
|
Handles the mouse buttons press events. Definition at line 53 of file MFCKeyboardMouseCallbacktime.h. References _mbutton, _mx, _mx_buttonPress, _my, and _my_buttonPress. |
|
||||||||||||||||
|
Handles the mouse buttons release events. Definition at line 67 of file MFCKeyboardMouseCallbacktime.h. |
|
|
Getter for the View MAtrix.
Definition at line 112 of file MFCKeyboardMouseCallbacktime.h. References _trackBall, mbutton(), mx(), and my(). |
|
|
To get to the initial position. Definition at line 28 of file MFCKeyboardMouseCallbacktime.h. References resetTrackball(). |
|
|
To get to the initial position. Definition at line 36 of file MFCKeyboardMouseCallbacktime.h. References resetTrackball(). |
|
|
Getter for the mouse button pressed, Y coordinate
Definition at line 90 of file MFCKeyboardMouseCallbacktime.h. References _mbutton. Referenced by getViewMatrix(). |
|
||||||||||||
|
Handles the mouse motion events. Definition at line 44 of file MFCKeyboardMouseCallbacktime.h. |
|
|
Getter for the mouse position, X coordinate
Definition at line 78 of file MFCKeyboardMouseCallbacktime.h. References _mx. Referenced by getViewMatrix(). |
|
|
Getter for the mouse position, Y coordinate
Definition at line 84 of file MFCKeyboardMouseCallbacktime.h. References _my. Referenced by getViewMatrix(). |
|
|
Resets the trackball Definition at line 95 of file MFCKeyboardMouseCallbacktime.h. References _sceneView, and _trackBall. Referenced by home(), keyPress(), and MFCKeyboardMouseCallbacktime(). |
|
|
Definition at line 122 of file MFCKeyboardMouseCallbacktime.h. Referenced by buttonPress(), buttonRelease(), and mbutton(). |
|
|
Definition at line 120 of file MFCKeyboardMouseCallbacktime.h. Referenced by buttonPress(), buttonRelease(), mouseMotion(), and mx(). |
|
|
Definition at line 121 of file MFCKeyboardMouseCallbacktime.h. Referenced by buttonPress(). |
|
|
Definition at line 120 of file MFCKeyboardMouseCallbacktime.h. Referenced by buttonPress(), buttonRelease(), mouseMotion(), and my(). |
|
|
Definition at line 121 of file MFCKeyboardMouseCallbacktime.h. Referenced by buttonPress(). |
|
|
Definition at line 125 of file MFCKeyboardMouseCallbacktime.h. Referenced by resetTrackball(). |
|
|
Definition at line 124 of file MFCKeyboardMouseCallbacktime.h. Referenced by getViewMatrix(), and resetTrackball(). |
1.4.6-NO